<template>
<!-- 这是按钮组 组件 -->
  <el-button-group>
    <el-button type="primary" @click="btnOperation('add')">添加</el-button>
    <el-button type="primary" @click="btnOperation('compile')">编辑</el-button>
    <el-button type="primary" @click="btnOperation('delete')">删除</el-button>
  </el-button-group>
</template>
<script>
// import Bus from './BUS'
export default {
  methods:{
    btnOperation(Sign){
      /*
      Sign="add"      添加
      Sign="compile"  编辑
      Sign="delete"   删除
       */
      console.log('点击按钮'+Sign)
      this.$bus.emit("gotoRightFrom",Sign)
    }
  }
}
</script>